
public class multicatch {

public void mulexcep()
{    
	int i=1;
	int j=0;
	int[] array = new int[10];
	
	try {
	  
	  int result = i/j;
	  int sixthElement = array[12];
	}
	
	catch(ArithmeticException ex)
	{
		System.out.println("No cannot be divided by zero" +ex.toString());
		
	}
	catch(ArrayIndexOutOfBoundsException ex)
	{
		System.out.println("Array size is limited to 10");
	}
	System.out.println("the program is fine");
}
}

class Test {
	public static void main(String[] args)
	{
		multicatch m = new multicatch();
	m.mulexcep();
	//System.out.println("");
	}
}